package state.bean;

public class Rect {
  public int x;
  public int y;
  public int width;
  public int height;
  
  public Rect() {
  }
  
  public Rect(int x, int y, int width, int height) {
    this.x = x;
    this.y = y;
    this.width = width;
    this.height = height;
  }
  
  public boolean contains(int x, int y) {
    return (x > this.x && y > this.y && x < this.x + this.width && y < this.y + this.height);
  }
}
